package com.techsoul.module.basic.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.techsoul.module.basic.pojo.entity.CustomerConsigneeDeliveryAddress;
import com.techsoul.module.basic.pojo.param.CustomerConsigneeDeliveryAddressSearchParam;
import com.techsoul.module.basic.pojo.vo.CustomerConsigneeDeliveryAddressVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 收货人地址Mapper接口
 * 
 * @author liuen
 * @date 2023-07-17
 */
public interface CustomerConsigneeDeliveryAddressMapper extends BaseMapper<CustomerConsigneeDeliveryAddress> {

    /**
     * 详情
     * @param id
     * @return
     */
    CustomerConsigneeDeliveryAddressVo findById(String id);

    /**
     * 列表
     * @param params
     * @return
     */
    List<CustomerConsigneeDeliveryAddressVo> findAll(@Param("params") CustomerConsigneeDeliveryAddressSearchParam params);

    /**
     * 分页
     * @param page
     * @param params
     * @return
     */
    IPage<CustomerConsigneeDeliveryAddressVo> findAll(Page page, @Param("params") CustomerConsigneeDeliveryAddressSearchParam params);

    CustomerConsigneeDeliveryAddress findByCustCodeAndAddress(@Param("consigneeAddress") String consigneeAddress, @Param("cCustCode") String cCustCode);

    IPage<CustomerConsigneeDeliveryAddressVo> findAll2(Page<Object> objectPage, @Param("params") CustomerConsigneeDeliveryAddressSearchParam params);
}
